import React, { Component } from 'react';
import { connect } from 'dva';
import { Input, Button, Icon } from 'antd';
import numeral from 'numeral';
import DemoComponent from '../../components/Demo';
import NumberInfo from '../../components/NumberInfo';
import { getTimeDistance } from '../../utils/utils';
import { getAuthority, setAuthority, hasAuthority, hasRole } from '../../utils/authority';

import styles from './HomePage.less';

@connect(({ homePage, }) => ({
  homePage,
}))
export default class HomePage extends Component {


  componentWillMount() {
  }

  componentDidMount() {
    const { dispatch } = this.props;

    dispatch({
      type: 'homePage/fetch'
    });

  }


  render() {
    const { homePage: homePageState } = this.props;
    return (
      <div>
        京东余额 ：<span style={{ fontSize: 96, fontWeight: 'bold' }}>{homePageState.jdBalance}</span>
      </div>
    );
  }
}
